public class ZhaiZhiJie4
{
    public static void main(String[] args)
    {
        User[] p = new User[3];
        p[0] = new User("zhangsan", "1");
        p[1] = new User("lisi", "2");
        p[2] = new User("wangwu", "3");
    }
}

class User
{
    private String name;
    private String password;
    private int count = 0;

    public User(){}

    public User(String name)
    {
        this.setName(name);
        count++;
    }

    public User(String name, String password)
    {
        this.setName(name);
        count++;
        this.setPassword(password);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int Count()
    {
        return count;
    }
}
